import request from '@/utils/request'

// 查询设备点检列表
export function listEmJd(query) {
  return request({
    url: '/device/emJd/list',
    method: 'get',
    params: query
  })
}

// 查询设备点检详细
export function getEmJd(id) {
  return request({
    url: '/device/emJd/' + id,
    method: 'get'
  })
}

// 新增设备点检
export function addEmJd(data) {
  return request({
    url: '/device/emJd',
    method: 'post',
    data: data
  })
}

// 修改设备点检
export function updateEmJd(data) {
  return request({
    url: '/device/emJd',
    method: 'put',
    data: data
  })
}

// 删除设备点检
export function delEmJd(id) {
  return request({
    url: '/device/emJd/' + id,
    method: 'delete'
  })
}
